package cn.psvmc.cxzapi.mapper.goods;

import cn.psvmc.cxzapi.config.mybatisplus.mapper.MyBaseMapper;
import cn.psvmc.cxzapi.model.goods.TGoodsAttribute;
import org.apache.ibatis.annotations.Param;

import java.time.LocalDateTime;
import java.util.List;
import java.util.Map;

/**
 * 商品属性表 Mapper 接口
 * @Author auto
 * @Date 2024-08-14
 */
public interface TGoodsAttributeMapper extends MyBaseMapper<TGoodsAttribute> {
    //删除商品属性信息
    void deleteByGoodsId(@Param("goodsId") Integer goodsId);

    //根据商品id获取商品属性
    List<Map> listByGoodsId(@Param("goodsId") Integer goodsId);

    //复制商品属性信息
    void copyGoodsAttribute(@Param("goodsId") Integer goodsId, @Param("id") Integer id, @Param("createid") Integer createid, @Param("createtime") LocalDateTime now);
}
